import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

export default function processManageAPI(api) {
  return {
    // 获取流程申请人
    getApplyPeople: (query) => api.post(`${config.interfaces.type5}portfolio-server/user/findAll`, query),

    // 获取页面信息
    getTableData: (query) => api.get(`${config.interfaces.type1}flow/find`, query),
    // 获取全部关联组合
    cpTreeDateAll: (query) => api.get(`${config.interfaces.type5}portfolio-server/portfolioInfo/add-for-setting`, query),
    // 根据获取同岗位人员
    getStationUserByUserId: (query) => api.get(`${config.interfaces.type5}portfolio-server/user/getStationUserByUserId`, query),
    // 调单
    turnOverOrder: (query) => api.get(`${config.interfaces.type5}busp-server/flow/order`, query),
  };
}
